#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
int mainyshsj()
{
	int i, j, r, c;
	int x;
	scanf("%d", &x);
	int a[5][6] = { {1,2,3,4,5,6},\
	{2, 3, 4, 5, 6, 7 }, \
	{3, 4, 5, 6, 7, 8}, \
	{4, 5, 6, 7, 8, 9}, \
	{5, 6, 7, 8, 9, 10} };
	r = 5;
	c = 6;
	for (i = 0; i < r; i++)
	{
		if (a[i][0] > x)
			break;
		for (j = 0; j < c; j++)
		{
			if (a[i][j] > x)
				break;
			if (a[i][j] == x)
				printf("%d,%d\n", i, j);
		}
	}
	printf("\n");
	return 0;
}